package com.qst.dao;

import com.qst.beans.CategorySecond;
import com.qst.beans.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategorySecondMapper {
    int deleteById(Integer id);

    int save(CategorySecond categorySecond);

    int add(CategorySecond categorySecond);

    List<CategorySecond> findAllCS();

    /*根据二级编号得到其下所有的产品*/
    List<Product> getAllInCS(@Param("csid") Integer csid);
}
